package studay.strategy;

/**
 * @program: 设计模式
 * @description:
 * @author: Tom
 * @create: 2022-01-07 21:15
 **/
public class PromotionContext {

    private Strategy strategy;

    public  PromotionContext(Strategy strategy){
        this.strategy = strategy;
    }
    public double executeStrategy(ProductOrder productOrder){
        return strategy.computePrice(productOrder);
    }
}
